//
//  XFXDidVoiceTableViewCell.m
//  XFXnews
//
//  Created by dllo on 16/1/29.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "XFXDidVoiceTableViewCell.h"

@interface XFXDidVoiceTableViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *photo;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *address;
@property (weak, nonatomic) IBOutlet UILabel *store;
@property (weak, nonatomic) IBOutlet UILabel *time;


@end


@implementation XFXDidVoiceTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(XFXDidVoiceModel *)model{
    _model = model;
    
    NSURL *url = [NSURL URLWithString:_model.timg];
    [self.photo sd_setImageWithURL:url placeholderImage:nil
     ];
    self.name.text = _model.n;
    self.name.font = [UIFont systemFontOfSize:13.0];
    self.address.text = _model.f;
    self.address.font = [UIFont systemFontOfSize:12.0];
    self.store.text = _model.b;
    self.store.font = [UIFont systemFontOfSize:14.0];
    self.store.numberOfLines = 0;
    self.time.text = _model.t;
    self.time.font = [UIFont systemFontOfSize:12.0];

    self.contentView.layer.cornerRadius = 5;
    self.contentView.layer.borderWidth = 1;
    self.contentView.layer.borderColor = [UIColor lightGrayColor].CGColor;
    self.contentView.layer.masksToBounds = YES;
    
    
}

@end
